<template>
	<view>
		<uni-group title="新闻轮播">
			<image v-if="lun.length ==0" :src="base+reactive.imgUrl"  style="width: 100%;"></image>
			<u-swiper v-if="lun.length >0" :height="250" :list="lun" :title="true" :effect3d="true" :interval="3000" @click="click"></u-swiper>
		</uni-group>
		<uni-group title="公司简介">
			{{reactive.introduce}}
		</uni-group>
		<uni-group title="运输方式">
			{{reactive.shippingMethod}}
		</uni-group>
		<uni-group title="运费介绍">
			<view>价格列表</view>
			<uni-list>
				<uni-list-item v-for="(item,index) in reactive.priceList" :title="'目的地'+item.areaName" :note="'文件价格'+item.fileStep"></uni-list-item>
			</uni-list>
			<uni-card v-if="reactive.priceList.length == 0">暂时没有信息</uni-card>
		</uni-group>
	</view>
</template>

<script>
	import api from 'commer/apiURL.js'
	export default {
		data() {
			return {
				base:api.baseurl,
				reactive:'',
				lun:[],
			}
		},
		onLoad(options) {
			this.getxian(options.id)
		},
		methods: {
			getxian(id){
				this.$get(this.base+'/prod-api/api/logistics-inquiry/logistics_company/'+id).then((res)=>{		
					this.reactive = res.data
					res.data.newsList.forEach((item)=>{
						this.lun.push({
							image:this.base+item.imgUrl,
							title:item.title
						})
					})
				})
			},
			
		}
	}
</script>

<style>

</style>
